package Team.Listener.MainFrame;

import java.awt.event.*;
import javax.swing.JOptionPane;

import Team.View.MainFrame.*;


public class SubmitButtonListener implements ActionListener
{
	public SubmitButtonListener(TeamMainFrameView view)
	{
		this.view = view;
	}
    public void actionPerformed(ActionEvent event)
    {
       int option =  JOptionPane.showConfirmDialog(this.view.frame, "Problem ID : "
				+ view.problemComboBox.getSelectedItem() + "\n" + "Language : "
				+ view.languageComboBox.getSelectedItem() + "\n" + "Action : Submit\n"
				+ "Do you want to Submit the code ?");	
       if (option == JOptionPane.YES_OPTION)
       {
    	   
       }
    }
    
    private TeamMainFrameView view;
}
